$(document).ready(function(){					
	var canvas = document.getElementById('canvas');//画布
	var stage = new JTopo.Stage(canvas);//舞台
	var scene = new JTopo.Scene(stage);//场景
	//显示工具栏 showJTopoToobar(stage);
	scene.background = './img/bg.jpg';//场景背景图片
	stage.add(scene);
	
	stage.eagleEye.visible = true;
	
	scene.alpha = 0.1;
	
	// 向场景增加节点
    for(var i= 0; i<500; i++){
        var node = new JTopo.Node('' + i);
        node.shadow = false;
        node.setSize(30, 30);
        node.rotate = Math.random(); // 旋转角度
        node.textPosition = "Middle_Center";
        var s = 2;
        var x = Math.random() * stage.width * s - Math.random() * stage.width * s;
        var y = Math.random() * stage.height * s - Math.random() * stage.height * s;
        node.setLocation(x, y);
        node.fillColor = JTopo.util.randomColor();
        
        scene.add(node);
    };
	
});
	